package com.kemai.designmode.chain

import com.kemai.common.utils.AppUtils

/**

 *@description:满减优惠
 * @author: zhaoshanshan
 * @date: 2022/10/4 9:48 上午

 */
class ManJianDiscount(private val next:MultiplyDiscount?): MultiplyDiscount(next) {

    override fun calculate(money: Double): Double {
        AppUtils.getInstance()?.showToast("执行满减优惠")
        var je = money;
        if(je>200){
            je -= 10;
        }
        return super.calculate(je)
    }


}